<template>
  <section>
    <Block
      v-for="(item, index) in recommend"
      :key="item.id"
      :floorNumber="index"
      :data="item"
    ></Block>
  </section>
</template>

<script>
import { getIndustryRecommend } from "@/api/api.js";
import Block from "./industryRecommend/Block.vue";
export default {
  name: "IndustryRecommend",
  components: { Block },
  data() {
    return {
      recommend: [], //行业推荐
    };
  },
  mounted() {
    this.getIndustryRecommend();
  },
  methods: {
    getIndustryRecommend() {
      getIndustryRecommend({}).then((res) => {
        console.info("行业推荐", res?.data);
        this.recommend = res?.data;
      });
    },
  },
};
</script>
